package com.robot.common.enums;

public enum CanEditTypeEnum implements  ValueProvider<Integer>{
    /**
     *
     */
    ONLY_CREATOR(1),//仅创建者
    SAME_ENTERPRISE_USER(2);//同企业用户

    private Integer integerValue;

    CanEditTypeEnum(Integer value) {
        this.integerValue = value;
    }

    public static CanEditTypeEnum fromValue(Integer value) {
        if (value == null) {
            return null;
        }
        for (CanEditTypeEnum permissionType : CanEditTypeEnum.values()) {
            if (permissionType.getValue().equals(value)) {
                return permissionType;
            }
        }
        return null;
    }

    @Override
    public Integer getValue() {
        return integerValue;
    }

}
